package com.glsc.ngateway.common.base.domainmapper;

import com.glsc.ngateway.common.base.domain.mysql.gateway.platform.OwnCloudOperateLog;
import com.glsc.ngateway.common.api.platform.dto.owncloud.OwnCloudOperateLogDto;
import org.mapstruct.Mapper;
import org.mapstruct.Mapping;
import org.mapstruct.factory.Mappers;

import java.util.List;


/**
 * @Author: xc
 * @Desc: domin到dto转换辅助类
 */
@Mapper(componentModel = "spring")
public interface OwnCloudOperateLogMapper {
    OwnCloudOperateLogMapper INSTANCE = Mappers.getMapper(OwnCloudOperateLogMapper.class);

    OwnCloudOperateLogDto domain2dto(OwnCloudOperateLog domain);

    List<OwnCloudOperateLogDto> domain2dto(List<OwnCloudOperateLog> domain);

    @Mapping(target = "insertTime", ignore = true)
    @Mapping(target = "updateTime", ignore = true)
    @Mapping(target = "deleted", ignore = true)
    OwnCloudOperateLog dto2domain(OwnCloudOperateLogDto dto);

    List<OwnCloudOperateLog> dto2domain(List<OwnCloudOperateLogDto> dto);
}
